package util;

public class UserInputChecker {
	static Double[] initial, calculated;
	
	public static void setInitial(Double... initialInput){
		initial = initialInput;
	}
	
	public static void setCalculated(Double... calculatedInput){
		calculated = calculatedInput;
	}
	
	public static boolean checkInput(){
		for(int i = 0; i<initial.length;i++){
			if(initial[i] != 0){
				if(Math.abs(initial[i] - calculated[i]) > 0.1){
					return false;
				}
			}
		}
		return true;
	}
}
